// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Fluent;
using Elastic.Clients.Elasticsearch.Serialization;
using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Security;

public sealed partial class GetServiceCredentialsResponse : ElasticsearchResponse
{
	[JsonInclude, JsonPropertyName("count")]
	public int Count { get; init; }

	/// <summary>
	/// <para>
	/// Contains service account credentials collected from all nodes of the cluster
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("nodes_credentials")]
	public Elastic.Clients.Elasticsearch.Security.NodesCredentials NodesCredentials { get; init; }
	[JsonInclude, JsonPropertyName("service_account")]
	public string ServiceAccount { get; init; }
	[JsonInclude, JsonPropertyName("tokens")]
	public IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>> Tokens { get; init; }
}